<template>
	<div>
		<select-show :showStyle="showStyle" placeholder="请选择部门" :disabled="false" v-model:orgList="defaultValue"
			type="dept" :multiple="false"></select-show>
	</div>
</template>

<script setup lang="ts">
import { computed, defineExpose } from "vue";
import selectShow from "../../../../orgselect/selectAndShow.vue";

let props = defineProps({
	id: {
		type: String,
		default: "",
	},
	valueConfig: {
		type: Object,
		dafault: () => { }
	},
	showStyle: {
		type: Number,
		default: 1
	}
});

var defaultValue = computed({
	get: () => {
		let value = props.valueConfig.value;
		return value ? value : [];
	},
	set: (s: any[]) => {
		props.valueConfig.value = s
	},
});
</script>

<style scoped lang="less"></style>